package com.fesine.blog.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2017/12/17
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2017/12/17
 */
@Data
@Document(indexName = "blog",type = "blog")
public class EsBlog implements Serializable {
    private static final long serialVersionUID = -1874732672857993807L;
    @Id
    private String id;
    private String title;
    private String summary;
    private String content;

    protected EsBlog() {
    }

    public EsBlog(
            String title,
            String summary,
            String content) {
        this.title = title;
        this.summary = summary;
        this.content = content;
    }


}
